<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<link href="styles/erp_order_print.css" rel="stylesheet" type="text/css" />

<body>


<div id="order_header">
	<div id="order_title">{$lang.erp_print_order_title}</div>
	<div id="order_info">
		<table cellpadding="3" cellspacing="1">
			<tr>
				<td>
					<span>{$lang.erp_print_order_supplier_name}{$order_info.supplier_name}</span>
				</td>
				<td>
					<span>{$lang.erp_print_order_sn}{$order_info.order_sn}</span>
				</td>
				<td>
					<span>{$lang.erp_print_create_date}{$order_info.create_date}</span>
				</td>
			</tr>
		</table>	
	</div>
</div>


<!-- start order item info -->

<div id="order_list">
<table  cellpadding="3" cellspacing="0">
  <tr>
    <th width="5%">{$lang.erp_order_item_id}</th>
    <th width="8%">{$lang.erp_order_item_goods_sn}</th>
	<th>{$lang.erp_order_item_goods_name}</th>
	<th >{$lang.erp_order_item_goods_attr}</th>
	<th>{$lang.erp_order_item_order_price}</th>
	<th>{$lang.erp_order_item_order_qty}</th>
	<th>{$lang.erp_order_item_order_amount}</th>
	<th>{$lang.erp_order_specific}</th>
  </tr>
	{foreach from=$order_item_info key=key item=order_item}	
		<tr id="tr_order_item_{$order_item.order_item_id}">
		<td align="center">{$key}</td>

		<td>
				{if $order_item.goods_details}
					{$order_item.goods_details.goods_sn}
				{else}	
					{$lang.erp_order_input_goods_sn}
				{/if}	
		</td>

		<td>
			{if $order_item.goods_details.goods_name}{$order_item.goods_details.goods_name}{else}&nbsp;{/if}
		</td>

		<td align="center">
				{if $order_item.selected_attr}
				<table class="tb_print_attr" style="border:none; width:100px;" >
					{foreach from=$order_item.selected_attr item=attr}
						<tr>
							<td style="border:none;">{$attr.attr_name}：</td>
							<td style="border:none;">{$attr.attr_value}</td>
						</tr>
					{/foreach}
				</table>
				{else}
					&nbsp;
				{/if}
		</td>
		
		<td align="center">
				{if $order_item.goods_details.goods_name}{$order_item.price}{else}&nbsp;{/if}
		</td>
			

	
		<td align="center">
			{if $order_item.order_qty}{$order_item.order_qty}{else}&nbsp;{/if}
		</td>

		<td align="center">
			<span id="amount_{$order_item.order_item_id}">{$order_item.amount}</span>
		</td>
		
		<td align="center">
			{if $order_item.specific_desc}{$order_item.specific_desc}{else}&nbsp;{/if}
		</td>		
	</tr>	
	{foreachelse}
  		<tr><td class="no-records" colspan="8">{$lang.no_records}</td></tr>
  {/foreach}
  <tr>
  	<td colspan="6" align="right">{$lang.erp_order_sum_total}</td>
	<td align="center"><span id="span_total_order_qty">{if $order_info.order_qty}{$order_info.order_qty}{else}0{/if}</span>{$lang.erp_order_qty_unit}</td>
	<td align="center"><span id="span_total_order_amount">{if $order_info.order_amount}{$order_info.order_amount}{else}0{/if}</span></td>
  </tr>
</table>

</div>
<!-- end order item info -->


<div id="order_signature">
	<table>
		<tr>
			<td>
				{$lang.erp_print_order_user1}
			</td>
			<td>
				{$lang.erp_print_order_user2}
			</td>
			<td>
				{$lang.erp_print_order_user3}
			</td>			
			<td>
				{$lang.erp_print_order_user4}
			</td>	
		</tr>
	</table>
	
</div>

</body>
</html>
